<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    
    <title>My JSP 'adindex.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="icon" href="../images/icon.jpg" type="image/x-icon">
	<link rel="stylesheet" type="text/css" href="../css/generalstyle.css">
	
	<title>管理首页</title>
	<script type="text/javascript">
		function Check()
		{
			if(document.adlogin.adname.value=="")
			{
				alert("请填写用户名！！！");
				adlogin.adname.focus();
				return false;
			}
			if(document.adlogin.pwd.value=="")
			{
				alert("请填写密码！！！");
				adlogin.pwd.focus();
				return false;
			}
			document.adlogin.submit();
		}
	</script>
  </head>
  
  <body>
    <%@ include file="admintop.jsp"%>
    <br><br><br>
    <form name="adlogin" action="servlet/RegAndLoginServlet" method="post">
	    <table align="center" border="0" width="40%" bgcolor="aabbcc">
	    	
	    		<tr height="20"></tr>
	    		<tr>
	    			<td align="right" width="40%">用户名：</td>
	    			<td colspan="2" width="60%">
	    				<input type="text" name="adname" size="20">
	    			</td>
	    		</tr>
	    		<tr>
	    			<td align="right" width="40%">密码：</td>
	    			<td colspan="2" width="60%">
	    				<input type="password" name="pwd" size="20">
	    			</td>
	    		</tr>
	    		<tr>
	    			<td align="right">
	    				<input type="hidden" name="action" value="adlogin">
	    				<input type="button" value="登录" onclick="Check()">
	    			</td>
	    			<td align="left">
	    				&nbsp;&nbsp;&nbsp;&nbsp;
	    				<input type="reset" value="重置">
	    			</td>
	    		</tr>
	    	
	    </table>
	  </form>
  </body>
</html>
